<?php

namespace app\admin\model\vppz;

use think\Model;
use think\Db;
use traits\model\SoftDelete;

class VipOrder extends Model
{

    use SoftDelete;



    // 表名
    protected $name = 'vppz_vip_order';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'integer';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = 'deletetime';
  public function user()
    {
        return $this->belongsTo('User', 'user_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }
        public function getStatusList()
    {
        return ['0' => __('Status 0'), '1' => __('Status 1'), '4' => __('Status 4'), '5' => __('Status 5')];	//'0' => __('Status 0'),
    }
}
